import request from '@/utils/request';

// 健康度
export function queryTopHealth(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkOverview/queryTopHealth',
		method: 'post',
		data: data,
	});
}

// 告警趋势
export function queryAlarmTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryAlarmTrend',
		method: 'post',
		data: data,
	});
}

// 会话趋势
export function querySessionTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/querySessionTrend',
		method: 'post',
		data: data,
	});
}

// 响应趋势
export function queryResponseTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryResponseTrend',
		method: 'post',
		data: data,
	});
}

// 零窗口趋势
export function queryZeroTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryZeroTrend',
		method: 'post',
		data: data,
	});
}

// 重置包数
export function queryResetTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryResetTrend',
		method: 'post',
		data: data,
	});
}

// 重传包数
export function queryRetryTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryRetryTrend',
		method: 'post',
		data: data,
	});
}

// 网络传输及重传时延
export function queryTranslateTimeTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPerformanceAnalysis/queryTranslateTimeTrend',
		method: 'post',
		data: data,
	});
}
